package main

import (
	"example.com/dcache/httpserver"
	"example.com/dcache/rpcserver/server"
	"example.com/dcache/setting"
)

// @title 分布式缓存 dcache
// @version 1.0
// @description 一个用Go语言编写的简易分布式缓存，提供restful api接口
// @termsOfService https://github.com/go-programming-tour-book
func main() {
	setting.Setup()

	if setting.ServerSetting.UseRpc == 1 {
		go server.Server()
	}

	httpserver.Server()
}
